package org.dandsoft.blackbox;

/**
 * @author Vilyuzhanin Denis (Fin)
 */
public class Clock {

    private Time currentTime;

    public Clock() {
        currentTime = Time.NULL;
    }

    public void nextTime() {
        currentTime = currentTime.increment();
    }

    public void setCurrentTime(Time currentTime) {
        this.currentTime = currentTime;
    }

    public Time getCurrentTime() {
        return currentTime;
    }
}
